#include "StdAfx.h"
#include "ArrayCompare.h"
#include <iostream>
using namespace std;

#include <boost/timer.hpp>
using namespace boost;

void CArrayCompare::Run()
{
  timer tm;

  tm.restart();
  DequeAlgorithm();
  cout << "deque: " << tm.elapsed() << endl;

  tm.restart();
  VectorAlgorithm();
  cout << "vector: " << tm.elapsed() << endl;

  tm.restart();
  ListAlgorithm();
  cout << "list: " << tm.elapsed() << endl;

  tm.restart();
  QueueAlgorithm();
  cout << "queue: " << tm.elapsed() << endl;

  tm.restart();
  MapAlgorithm();
  cout << "map: " << tm.elapsed() << endl;
}